package day2;

/**
 * ClassName：Test4
 *
 * @Author：小鱼
 * @Create：2025-08-19 11:45
 */
public class Test4 {
    public static void main(String[] args) {
        Thread thread1 = new Thread(){
            @Override
            public void run(){
                for (int i = 1; i < 30; i++) {
                    try {
                        Thread.sleep(100);
                    } catch (InterruptedException e) {
                        e.printStackTrace();
                    }
                    System.out.println("i: "+i);
                }
            }

        };
    }
}
